<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/11
  Time: 下午 05:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/updateStuServlet" method="post">
    <input type="hidden" name="stuNo" value="${student.studentNo}">
    姓名：<input type="text" name="stuName" value="${student.studentName}"><br>
    密码：<input type="text" name="loginPwd" value="${student.loginPwd}"><br>
    性别：<input type="radio" name="sex" <c:if test="${student.sex==0}">checked</c:if>value="0">女
        <input type="radio" name="sex" <c:if test="${student.sex==1}">checked</c:if>value="1">男<br>
    所属班级：<select name="gradeId" >
        <option <c:if test="${student.gradeId==1}">selected</c:if> value="1">大一</option>
        <option <c:if test="${student.gradeId==2}">selected</c:if> value="2">大二</option>
        <option <c:if test="${student.gradeId==3}">selected</c:if> value="3">大三</option>
        <option <c:if test="${student.gradeId==4}">selected</c:if> value="4">大四</option>
        <option <c:if test="${student.gradeId==5}">selected</c:if> value="5">预科班</option>
    </select> <br>
    电话:<input type="text" name="phone" value="${student.phone}"><br>
    地址:<input type="text" name="address" value="${student.address}"><br>
    出生日期:<input type="text" name="bornDate" value="${student.bornDate}"><br>
    email：<input type="text" name="email" value="${student.email}"><br>
    身份证号：<input type="text" name="identityCard" value="${student.identityCard}"><br>
    <input type="submit" value="提交">

</form>
</body>
</html>
